package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysNlpStopWordMapper;
import com.ruoyi.system.domain.SysNlpStopWord;
import com.ruoyi.system.service.ISysNlpStopWordService;

/**
 * 停用词Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-08-27
 */
@Service
public class SysNlpStopWordServiceImpl implements ISysNlpStopWordService 
{
    @Autowired
    private SysNlpStopWordMapper sysNlpStopWordMapper;

    /**
     * 查询停用词
     * 
     * @param id 停用词主键
     * @return 停用词
     */
    @Override
    public SysNlpStopWord selectSysNlpStopWordById(Long id)
    {
        return sysNlpStopWordMapper.selectSysNlpStopWordById(id);
    }

    /**
     * 查询停用词列表
     * 
     * @param sysNlpStopWord 停用词
     * @return 停用词
     */
    @Override
    public List<SysNlpStopWord> selectSysNlpStopWordList(SysNlpStopWord sysNlpStopWord)
    {
        return sysNlpStopWordMapper.selectSysNlpStopWordList(sysNlpStopWord);
    }

    /**
     * 新增停用词
     * 
     * @param sysNlpStopWord 停用词
     * @return 结果
     */
    @Override
    public int insertSysNlpStopWord(SysNlpStopWord sysNlpStopWord)
    {
        return sysNlpStopWordMapper.insertSysNlpStopWord(sysNlpStopWord);
    }

    /**
     * 修改停用词
     * 
     * @param sysNlpStopWord 停用词
     * @return 结果
     */
    @Override
    public int updateSysNlpStopWord(SysNlpStopWord sysNlpStopWord)
    {
        return sysNlpStopWordMapper.updateSysNlpStopWord(sysNlpStopWord);
    }

    /**
     * 批量删除停用词
     * 
     * @param ids 需要删除的停用词主键
     * @return 结果
     */
    @Override
    public int deleteSysNlpStopWordByIds(Long[] ids)
    {
        return sysNlpStopWordMapper.deleteSysNlpStopWordByIds(ids);
    }

    /**
     * 删除停用词信息
     * 
     * @param id 停用词主键
     * @return 结果
     */
    @Override
    public int deleteSysNlpStopWordById(Long id)
    {
        return sysNlpStopWordMapper.deleteSysNlpStopWordById(id);
    }
}
